import Modeler from 'bpmn-js/lib/Modeler'

import inherits from 'inherits'

import PaletteProvider from './components/PaletteProvider'
import ContextPadProvider from './components/ContextPadProvider'
import CustomRenderer from "../customModeler/custom/CustomRenderer";

export default function CreateModeler(options) {
  Modeler.call(this, options)

  this._customElements = []
}

inherits(CreateModeler, Modeler)

CreateModeler.prototype._modules = [].concat(
  CreateModeler.prototype._modules, [{
    __init__: ['paletteProvider', 'contextPadProvider','customRenderer'],
    paletteProvider: ['type', PaletteProvider],
    customRenderer: ['type', CustomRenderer],
    contextPadProvider: ['type', ContextPadProvider]
  }]
)